package cn.snowheart.command.command;

import cn.snowheart.command.inter.CeilingFan;

/**
 * @author liuwanxiang
 * @version 2019/07/04
 */
public class CeilingFanMediumCommand extends CeilingFanCommand {

    public CeilingFanMediumCommand(CeilingFan ceilingFan) {
        super(ceilingFan);
    }

    @Override
    public void execute() {
        prevSpeed = ceilingFan.getSpeed();
        ceilingFan.medium();
    }

}
